import auditDialog from '@/components/common/dialog/auditDialog'
export default {
  components: { auditDialog },
  data () {
    return {
      auditDialogVisible: false
    }
  },
  computed: {
    isAudit () {
      let type = this.$route.query.type
      let flag = false
      if (type === 'audit') { flag = true }
      return flag
    }
  },
  methods: {
    handleGoBack () {
      this.$router.push({ name: 'chageFromManageList' })
    },
    handleOpenAuditDialog () {
      this.$nextTick(() => {
        // 用于解决开放添加按钮后，第一次点击编辑，模态框数据为空的问题
        this.auditDialogVisible = true
      })
    }
  }
}
